package idv.nightpig.lab02.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "USER")
public class User {

    private String account;
    private Date createTime;
    private String email;
    private Long id;
    private String password;
    private Date updateTime;

    @Column(name = "ACCOUNT", unique = true)
    public String getAccount() {
        return account;
    }

    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    @Column(name = "EMAIL", unique = true)
    public String getEmail() {
        return email;
    }

    @Id
    @GeneratedValue
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    @Column(name = "PASSWORD")
    public String getPassword() {
        return password;
    }

    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
